package com.atgm.mall.gmmallauth.feign.fallback;

import com.atgm.common.exception.BizCodeEnume;
import com.atgm.common.utils.R;
import com.atgm.common.vo.login.WeiboUser;
import com.atgm.mall.gmmallauth.feign.MemberFeignService;
import com.atgm.mall.gmmallauth.vo.UserLoginVo;
import com.atgm.mall.gmmallauth.vo.UserRegistVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class MemberFeignFallBackService implements MemberFeignService {

    @Override
    public R register(UserRegistVo vo) {
        return R.error(BizCodeEnume.REGISTRY_LOGIN.getCode(), BizCodeEnume.REGISTRY_LOGIN.getMsg());
    }

    @Override
    public R login(UserLoginVo vo) {
        return R.error(BizCodeEnume.USER_LOGIN.getCode(), BizCodeEnume.USER_LOGIN.getMsg());
    }

    @Override
    public R handlerWeiboLogin(WeiboUser weiboUser) {
        return R.error(BizCodeEnume.USER_LOGIN.getCode(), BizCodeEnume.USER_LOGIN.getMsg());
    }
}
